#pragma once

#include "../QRSWidgetBase.h"
#include "ui_QMoveEdgeOperation.h"
#include "Render/QIVtkSelectionPipeline.h"

class MainWindow;
class ShapeOperation;

QT_BEGIN_NAMESPACE
namespace Ui { class QMoveEdgeOperationClass; };
QT_END_NAMESPACE

class QMoveEdgeOperation : public QRSWidgetBase
{
	Q_OBJECT

public:
	QMoveEdgeOperation(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	~QMoveEdgeOperation();

private:
	Ui::QMoveEdgeOperationClass *ui;

protected:
	void OnSelectedSubShapes(QIVtkSelectionPipeline* actor);
	virtual void closeEvent(QCloseEvent* event) override;

	void OnModify();
	void OnConfirm();

	void MoveEdgeInner();

	QIVtkSelectionPipeline* m_selectedActor = nullptr;
};
